<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage WhitePaper
 * @since WhitePaper 1.0
 */
 
get_header(); ?>
	<section id="main" class="content">
		<?php if (have_posts()) : ?>
			<?php while (have_posts()) : the_post(); ?>
			<article id="post-<?php the_ID(); ?>" class="entry">
				<header class="entry-head">
					<div class="meta-date">
						<span class="meta-month"><?php the_time('M'); ?></span>
						<br />
						<span class="meta-day"><?php the_time('jS'); ?></span>
					</div>
					<h2 class="entrytitle" id="post-<?php the_ID(); ?>">
						<a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
					</h2>
					<p>
						<span class="meta-category"><?php the_category(', ') ?></span>
						<span>|</span>
						<span class="meta-comment"><?php comments_popup_link($comments_img_link .'No Comments', $comments_img_link .'1 Comment', $comments_img_link . '% Comments'); ?></span>
					</p>
				</header>
				<section class="entry-body">
					<?php the_content('Read the rest of this entry &raquo;'); ?>
				</section>
			</article>
			<?php endwhile; ?>
			<?php whitepaper_nav( 'navigation' ); ?>
		<?php endif; ?>
	</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>